import request from '@/utils/request'

/**
 * 录入
 */
export function vehicleEnterParking(data) {
  return request({
    url: '/vehicle_enter_parking',
    method: 'POST',
    data
  })
}
export function getAllParkingOrders(params) {
  return request({
    url: '/get_all_parking_orders',
    method: 'get',
    params
  })
}
/**
 * 出场
 */
export function vehicleExitParking(data) {
  return request({
    url: '/vehicle_exit_parking',
    method: 'POST',
    data
  })
}
/**获取出场订单信息 */
export function vehicleExitParking_(data) {
  return request({
    url: '/vehicle_exit_parking_',
    method: 'POST',
    data
  })
}
/**查询个人车牌信息 */
export function getLicensePlates(data) {
  return request({
    url: `/get_parking_orders?user_id=${data}`,
    method: 'get',
  })
}

/**绑定车牌 */
export function addLicensePlate(data ) {
  return request({
    url: `/add_license_plate`,
    method: 'post',
    data
  })
}
/**
 * 获取车牌
 */
export function getAllUsersWithPlates(params) {
  return request({
    url: '/get_all_users_with_plates',
    method: 'get',
    params
  })
}